<ion-view view-title="活期宝" >
    <ion-nav-buttons side="left">
        <back-button></back-button>
        <a ng-href="#/tab/search" class="btnSearch"></a>
    </ion-nav-buttons>
    <ion-content scroll-to-top="1" delegate-handle="scroller" ng-class="{'has-loading': isOffline}">

        <ion-refresher pulling-text={{PULLING_TEXT}} pulling-icon="" refreshing-text={{REFRESHING_TEXT}}
                       on-refresh="doRefresh()"></ion-refresher>



        <!-- promo -->
        <channel-img></channel-img>
        <a href="#/tab/product-starTerm/starTerm" class="go">和明星宝宝PK下收益吧</a>
        <div class="term">
            <div class="panel" ng-repeat="item in items">
                <a ng-href="#/tab/product-item/{{item.prod_code}}" >
                <h2 class="item">{{item.prod_name}}</h2>
                <div class="item">
                    <p ng-if="item.prod_status!=4">七日年化收益率<em ng-class="{inc_ : item.prod_yield < 0}">{{item.prod_yield | defNumber :4}}<sub>%</sub></em></p>
                    <p ng-if="item.prod_status==4">认购截止日<em>{{item.ipo_end_date | defDateString}}</em></p>
                    <p>已售份额<em>{{item.prod_scale | defNumber :2}}<sub>亿</sub></em></p>
                    <p>起购金额<em ng-bind-html="item.prod_min_subscribe"></em></p>
                </div>
                </a>
            </div>
        </div>
        <ion-infinite-scroll on-infinite="loadMore()" distance="1%" ng-if="vm.loadMore" >
        </ion-infinite-scroll>
    </ion-content>
    <scroll-to-top-button animate="true">
        <a class="backTop">↑</a>
    </scroll-to-top-button>
</ion-view>